package com.examiner.service;

import com.examiner.bean.test.NewTestUser;
import com.examiner.bean.vo.CommitMyTestV0;
import com.examiner.bean.vo.MyTestAndTestDBVo;
import com.examiner.bean.vo.NewTestDB;
import com.examiner.page.QueryInfo;

import java.util.List;

public interface MyTestService {
    /**
     * 根据ID获取当前用户的考评记录
     * @param id
     * @param queryInfo
     * @return
     */
    List<MyTestAndTestDBVo> getMyTestList(Integer id, QueryInfo queryInfo) throws Exception;

    /**
     * 根据ID获取当前用户的考评记录总条数
     * @param id
     * @param queryInfo
     * @return
     */
    int getMyTestListTotal(Integer id, QueryInfo queryInfo) throws Exception;

    /**
     * 获取考评信息
     * @param nid
     * @return
     */
    NewTestDB getMyTestInfo(Integer nid) throws Exception;

    NewTestUser getNewTestUser(Integer id) throws Exception;

    void commintMyTest(CommitMyTestV0 commitMyTestV0) throws Exception;

    void commintCheckTest(CommitMyTestV0 commitMyTestV0) throws Exception;
}
